package cn.xuan.scan.dao;

import java.util.List;

import cn.xuan.scan.dao.query.param.CommonQueryParam;

public interface CommonQueryDAO {
    //根据hql查询一个实体
    public Object findObjectByHql(String hql) throws Exception;
    //根据hql查询所有实体
    public List findObjectsByHql(String hql) throws Exception; 
    //根据hql查询分页实体
    public List findObjectsPagedByHql(String hql,Integer begin,Integer end) throws Exception;
    //根据commonQueryParam查询实体
    public List queryObjects(CommonQueryParam commonQueryParam) throws Exception;
    public Object queryObject(CommonQueryParam commonQueryParam) throws Exception;
    //根据commonQueryParam查询实体数目
    public int queryObjectCount(CommonQueryParam commonQueryParam) throws Exception;
}
